package com.iqiyi.controller;

import com.iqiyi.dto.ActionResult;
import com.iqiyi.po.Label;
import com.iqiyi.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 标签的控制层
 *
 * @author YoungKai
 * @date 2021/2/24 11:24
 */
@RequestMapping("/label")
@RestController
public class LabelController {
    @Autowired(required = false)
    private LabelService labelService;
    @RequestMapping(value = "/findLnameByVid",method = RequestMethod.GET)
    public ActionResult findLnameByVid(int vid){
        List<Label> labels = labelService.findLnameByVid(vid);
        return new ActionResult(200,"find success!",labels);
    }
}
